#include "mainwindowimpl.h"
#include "mymapmodelkeystocolumn.h"
//
MainWindowImpl::MainWindowImpl( QWidget * parent, Qt::WFlags f) 
	: QMainWindow(parent, f), map(new QMap<QChar, int>()),
		mc(new MyMapContainer<QChar, int>(map)),
		model(new MyMapModelKeysToColumn(mc, false, this)){
	setupUi(this);

	(*map)[QChar('a')] = 1;
	(*map)[QChar('b')] = 2;
	(*map)[QChar('c')] = 3;

	tableView->setModel(model);
}

MainWindowImpl::~MainWindowImpl(){
	delete map;
	delete mc;
}

//

void MainWindowImpl::on_pushButton_clicked(){
	qDebug()<<map->keys();
	qDebug()<<map->values();
}
